import request from '@/utils/request'

// 查询用电信息列表
export function listElectricityusageInfo(query) {
  return request({
    url: '/zsw/electricityusageInfo/list',
    method: 'get',
    params: query
  })
}

// 查询用电信息详细
export function getElectricityusageInfo(electricityUsageId) {
  return request({
    url: '/zsw/electricityusageInfo/' + electricityUsageId,
    method: 'get'
  })
}

// 新增用电信息
export function addElectricityusageInfo(data) {
  return request({
    url: '/zsw/electricityusageInfo',
    method: 'post',
    data: data
  })
}

// 修改用电信息
export function updateElectricityusageInfo(data) {
  return request({
    url: '/zsw/electricityusageInfo',
    method: 'put',
    data: data
  })
}

// 删除用电信息
export function delElectricityusageInfo(electricityUsageId) {
  return request({
    url: '/zsw/electricityusageInfo/' + electricityUsageId,
    method: 'delete'
  })
}
